package com.qf.springcloud.order.feifn;

import com.qf.springcloud.order.pojo.OrderItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("04ITEMPROVIDER-EUREKA")//声明当前接口中的地址都是请求自04ITEMPROVIDER-EUREKA 服务的
public interface ItemFeignClient {

    @GetMapping("/items/item/{id}")
    OrderItem getItemById(@PathVariable Integer id);
}
